<!DOCTYPE unspecified PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<?php 
	$query = "SELECT * FROM broj_prikaza;";
	$result = myQuery($query);
	$prikazi = array();
	while ($row = mysql_fetch_array($result,MYSQL_ASSOC)) {
		$prikazi[$row['naziv']] = $row['broj'];
	}
?>

<form name='brojPrikaza' method='POST' action='exec/admin.php?action=edit&type=postavke'>
<div class='content' style='width: 300px'>
<span class='contentTitle'> Broj prikaza na stranicama </span>
<table class='tableResult' width="100%">
<tr>
	<th scope='row' class='spec'> Pretraga stanica </th>
	<td>
		<input type='text' name='stanice' value=' <?php print($prikazi['stanice']); ?> ' size='2'>
	</td>
</tr>

<tr>
	<th scope='row' class='spec'> Pretraga kemikalija </th>
	<td>
		<input type='text' name='kemikalije' value=' <?php print($prikazi['kemikalije']); ?> ' size='2'>
	</td>
</tr>

<tr>	
	<th scope='row' class='spec'> Pretraga recepta </th>
	<td>
		<input type='text' name='recepti' value=' <?php print($prikazi['recepti']); ?> ' size='2'>
	</td>
</tr>

<tr>	
	<th scope='row' class='spec'> Pretraga miševa </th>
	<td>
		<input type='text' name='misevi' value=' <?php print($prikazi['misevi']); ?> ' size='2'>
	</td>
</tr>
		
<tr>
	<th scope='row' class='spec' colspan='2'><center><input type='submit' value='Spremi postavke'></center>  </th>
</tr>

</table>
</div>
</form>

